import "./assets/main.css";
import "./assets/gray.css";
import "./assets/icons/iconfont.js";
import "./assets/icons/iconfont.css";

import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
// 1. 引入你需要的组件
import Vant from "vant";
// main.ts
import vxeTree from "vxe-tree";
//import the styles
import "vxe-tree/dist/index.css";

// 2. 引入组件样式
import "vant/lib/index.css";

// main.js 或 main.ts
import HeadCom from "@/components/header/head.vue";
import SearchCom from "@/components/header/search.vue";
import UserInfoCom from "@/components/header/userInfo.vue";
import EquipmentItem from "./components/equipmentItem.vue";
import SvgIcon from "./components/svgIcon.vue";
const app = createApp(App);
// 注册全局组件
app.component("HeadCom", HeadCom);
app.component("SearchCom", SearchCom);
app.component("UserInfoCom", UserInfoCom);
app.component("EquipmentItem", EquipmentItem);
app.component("SvgIcon", SvgIcon);


// 3. 注册你需要的组件
app.use(Vant);
app.use(vxeTree);
app.use(createPinia());
app.use(router);

app.mount("#app");
